//# sourceURL=dynamicScript.js
$ ( function () {
    selectByPrimaryKeyfhcx()
})

function selectByPrimaryKeyfhcx() {
    $("#tabscx").bootstrapTable({
        //请求方式  get请求中文会乱码，建议使用post请求
        method: 'post',
        //请求头部的设置
        contentType: 'application/json',
        //url
        url: '/selectByPrimaryKeyfhcx',
        //设置交替行样式
        striped: true,
        //初始显示页号
        pageNumber: 1,
        //设置表格高度
        //height: 350,
        //是否显示分页
        pagination: true,
        //设置是服务端分页还是客户端分页
        sidePagination: 'server',
        //页大小
        pageSize: 3,
        //分页列表
        pageList: [3, 5, 6, 10],
        //上传到服务端的参数
        queryParams:function (parms) {
            return{
                num:(parms.offset/parms.limit)+1,
                size:parms.limit,
            }
        },
        //定义列名
        columns:[
            {title:"配置单编号",field:"storeid",align:"center",
                formatter:function (vale,row,index) {
                    let del_btn="<a href='#'>"+row.storeid+"</a>";
                    return del_btn;
                }},
            {title:"产品编号",field:"prouctid",align:"center"},
            {title:"产品名称",field:"prouctname",align:"center"},
            {title:"配置单状态",field:"productclass",align:"center",
                formatter:function (vale,row,index) {
                    let a = "完成"
                    return a;
                }},
            {title:"复核状态",field:"checktag",align:"center",
            formatter:function (vale,row,index) {
                let a = row.storeid=1?"复核通过":"复核未通过"
                return a;
            }},
        ]
    })
}
function del(storeid) {
    location.href="/selectByPrimaryKeyfhid?storeid="+storeid;
}
